<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/23
  Time: 0:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Account Management</title>
</head>
<%@ include file="head.jsp"%>
<body>
<div class="card">
    <div class="card-body">
        <h5 class="card-title" align="center">商家账号管理</h5>
        <div class="card-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">id</th>
                    <th scope="col">账号</th>
                    <th scope="col">商品上架最大数量</th>
                    <th scope="col"> </th>
                    <th scope="col">操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${requestScope.Merchants}" var="merchant" varStatus="status">
                    <tr>
                        <th scope="row">${status.count}</th>
                        <td class="book.name">${merchant.user_id}</td>
                        <td>${merchant.user_name}</td>
                        <td>${merchant.cnt}</td>
                        <td><a href="./accountManagementServlet?action=EditAccountManagementById&Id=${merchant.user_id}&Page=${requestScope.AccountPage.page}" class="badge badge-primary">修改</a></td>
                        <td><a href="./accountManagementServlet?action=DeleteAccountManagementById&Id=${merchant.user_id}&Page=${requestScope.AccountPage.page}" class="badge badge-danger delete">删除</a></td>
                    </tr>
                </c:forEach>
                <tr>
                    <th scope="row"></th>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td><a href="./manage/AddAccount.jsp" class="badge badge-success">增加商家</a></td>
                </tr>
                </tbody>
            </table>
            <%@ include file="/html/AccountPage_Nav.jsp"%>
        </div>
    </div>
</div>

</body>
</html>
